package com.yuan.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/*
 *@author 雨安
 *类名： Person
 *创建时间：2023/10/24
 */
@ConfigurationProperties(prefix = "person")
@Component //标记为容器中的组件
@Data
public class Person {
    //成员属性
    private String userName;

    private Boolean boss;

    private Date birth;

    private Integer age;

    private String[] intersts;

    private List<String> animal;

    private Map<String, Object> score;

    private Set<Double> salarys;
}
